var verify_mutil_sams_city_different_price_baseMsg = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_mutil_sams_city_different_price"}');

// 获取提报详情 同城数据
if (!isNull(request_sku_list)) {
    var data = JSON.parse(request_sku_list);
    for (var i = 0; i < data.length; i++) {
        var obj = data[i];
        if (!isNull(obj.retail_tax) && !isNull(retail_tax) && obj.retail_tax == retail_tax) {
            // 两个对比的 含税售价如果相等 直接跳过
            continue;
        }

        // 是否一品多号
        if (!(!isNull(relation_item) && relation_item.split(',').indexOf(obj.item_nbr + "") > -1)) {
            continue;
        }

        // 判断交叉门店
        if (!determineInterSectionStore(obj, id, obj.item_nbr, trait_nbr, store_id, trait_store, store_type, false, store_jd)) {
            continue;
        }

        var d1 = getNewDate(new Date(obj.retail_start_date));
        var d2 = isNull(obj.retail_end_date) ? getNewDate(new Date("2049-12-31")) : getNewDate(new Date(obj.retail_end_date))
        var d3 = getNewDate(new Date(retail_start_date));
        var d4 = isNull(retail_end_date) ? getNewDate(new Date("2049-12-31")) : getNewDate(new Date(retail_end_date))

        // 判断交叉时间
        var overlapsFlag = overlaps(d1, d2, d3, d4);
        if (!overlapsFlag) {
            continue;
        }

        verify_mutil_sams_city_different_price_baseMsg.CODE = 2;
        verify_mutil_sams_city_different_price_baseMsg.ACTION = 'error';
        verify_mutil_sams_city_different_price_baseMsg.MSG = '存在一品多号同城不同价';
        break;
    }
}

JSON.stringify(verify_mutil_sams_city_different_price_baseMsg);